{% extends "admin/admin.html"%}

{% block content %}
        {% include 'admin/alert_info.html' %}
        <table class="table table-hover">
            <tbody>
            <tr>
                <th>编号</th>
                <th>名称</th>
                <th>地址</th>
                <th>添加时间</th>
                <th>操作事项</th>
            </tr>
            {% for auth in page_auths.items %}
                <tr>
                    <td>{{ auth.id }}</td>
                    <td>{{ auth.name }}</td>
                    <td>{{ auth.url }}</td>
                    <td>{{ auth.add_time }}</td>
                    <td>
                        <a class="label label-success" href="{{ url_for('admin.auth_update', update_id=auth.id) }}">编辑</a>
                        <a class="label label-danger" href="{{ url_for('admin.auth_delete', delete_id=auth.id) }}">删除</a>
                    </td>
                </tr>
            {% endfor %}
            </tbody>
        </table>
        {% import 'ui/admin_page.html' as pg %}
        {{ pg.page(page_auths, 'admin.auth_list') }}

{% endblock %}